package sdk.pay.constant;

import android.text.TextUtils;

public final class PayConfigure {
    public static String PAY_URL;
    public static String PAY_URL_TYPE;
    public static String PAY_URL_PAY;
    public static String ORDER_QUERY;
    public static String DEFAULT_PAY_URL;
    public static String DEFAULT_ORDER_URL;
    public static String UPLOAD_LOG_API;

    public static void setAPIs(String api) {
        PAY_URL = api;
        PAY_URL_TYPE = PAY_URL + PayConstant.TYPE_PARAM;
        ORDER_QUERY = PAY_URL + PayConstant.ORDER_PARAM;
        UPLOAD_LOG_API = PAY_URL + PayConstant.DO_UPLOAD_PARAM;
    }

    public static void setOrderApi(String api) {
        PAY_URL_PAY = api;
    }

    public static boolean isApiSetUp() {
        return !TextUtils.isEmpty(PAY_URL) && !TextUtils.isEmpty(PAY_URL_PAY);
    }


}
